package com.cowain.monitor.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.cowain.monitor.dao.PmsErpExceptionLogDao;
import com.cowain.monitor.datasources.DataSourceNames;
import com.cowain.monitor.datasources.annotation.DataSource;
import com.cowain.monitor.entity.PmsErpExceptionLogEntity;
import com.cowain.monitor.service.PmsErpExceptionLogService;
import org.springframework.stereotype.Service;

/**
 * PMS ehr-backend
 *
 * @Classname PmsErpExceptionLogServiceImpl
 * @Description TODO
 * @Date 2020-07-29 18:14
 * @Created 沈科举
 */
@Service
public class PmsErpExceptionLogServiceImpl extends ServiceImpl<PmsErpExceptionLogDao, PmsErpExceptionLogEntity> implements PmsErpExceptionLogService {
    @Override
    @DataSource(name = DataSourceNames.FIRST)
    public int addPmsErpExceptionLogEntity(PmsErpExceptionLogEntity pmsErpExceptionLogEntity) {
        return baseMapper.addPmsErpExceptionLogEntity(pmsErpExceptionLogEntity);
    }
}
